﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReturnToFactoryListNeedSend.aspx.cs" Inherits="WXYW.ReturnToFactoryListNeedSend" %>
<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    返厂维修服务-发货
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <WXYWControl:CustomGridView ID="returnToFactoryFormsGridView" runat="server" AutoGenerateColumns="False"
        Width="100%" CssClass="tableList" BorderWidth="1px" BorderColor="#888888" 
        AllowPaging="True" AllowSorting="True" PageSize="20"
        onpageindexchanging="returnToFactoryFormsGridView_PageIndexChanging" 
        onrowdatabound="returnToFactoryFormsGridView_RowDataBound"
        OnMustAddARow="GridView_MustAddARow" 
        onsorting="returnToFactoryFormsGridView_Sorting" 
        ondatabound="returnToFactoryFormsGridView_DataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="工厂RMA#" DataField="Code" SortExpression="Code">
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="RMA单号" SortExpression="ApplicationProduct.ApplicationForm.ApplicationCode">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ApplicationForm.ApplicationCode") %>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品型号" SortExpression="ApplicationProduct.ProductType.ProductTypeName">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductType.ProductTypeName") %>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品序号" SortExpression="ApplicationProduct.ProductSerialNumber">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductSerialNumber")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="故障现象" SortExpression="ApplicationProduct.ProductProblemDescription">
                <ItemTemplate>
                    <%#Eval("ApplicationProduct.ProductProblemDescription") %>
                </ItemTemplate>
                 <HeaderStyle Wrap="False" />
                 <ItemStyle Wrap="False" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="供货商代码" SortExpression="ProvideCode">
                <ItemTemplate>
                    <%#Eval("ProvideCode")%>
                </ItemTemplate>
                 <HeaderStyle Wrap="False" />
                 <ItemStyle Wrap="False" />
            </asp:TemplateField>            
            <%--<asp:TemplateField HeaderText="收货日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplicationProduct.ApplicationForm.ReceiveDateTime")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="返厂申请日期"  SortExpression="ApplyDate">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ApplyDate")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="返厂RMA#提供日期" SortExpression="ConfirmCodeDate">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("ConfirmCodeDate")).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
                 <HeaderStyle Wrap="False" />
                 <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="状态" DataField="Status" SortExpression="Status">
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docedit.gif" />
                    <asp:LinkButton ID="rtfLinkButton" runat="server" OnClick="rtfLinkButton_Click"
                        CommandArgument='<%#Eval("ID") %>'>修改</asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= returnToFactoryFormsGridView.Rows.Count%></span>条,
            <span style="color: Red">20</span>条/页 当前 <span style="color: Red">
                <%= returnToFactoryFormsGridView.PageIndex + 1 %>/<%= returnToFactoryFormsGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </WXYWControl:CustomGridView>
</asp:Content>
